package com.thread.sync.sync05;

//真实数据对象
public class RealDateServiceImpl implements DateService {
    //真实数据
    private String result;

    //获取真实数据
    public RealDateServiceImpl(String param) {
        System.out.println("根据" + param + "进行查询数据,请耐下等待...");
        try {
            Thread.sleep(3000);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        System.out.println("操作完毕，获取结果");
        result = "查询结果";
    }

    @Override
    public String getData() {
        return result;
    }

}
